<template>
  <h3>子组件</h3>
  <div>father's name : {{ name }}</div>
  <button @click="getSonMsg('hello father')">点击</button>
</template>

<script setup>
  defineProps(['name', 'getSonMsg'])
</script>

<style>
</style>